<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no">
    <title>过渡</title>
    <link rel="shortcut icon" href="../img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/popper.js"></script>
    <script src="../js/html5shiv.js"></script>
    <script src="../js/respondjs.js"></script>
    <script src="../js/jquery-3.4.1.js"></script>
    <script src="../js/bootstrap.js"></script>
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: red;
            transition: all .3s;
        }

        .box:hover {
            background: blue;
        }
    </style>
    <script>
        $(function () {
            //过渡效果执行结束的自定义事件transitionend
            $(".box").on("transitionend", function () {
                alert("你的浏览器支持过渡！");
            });
        });
    </script>
</head>
<body>
<div class="container">
    <div class="box"></div>
</div>
</body>
</html>
